<%--
  Created by IntelliJ IDEA.
  User: Simon
  Date: 8.10.2009
  Time: 23:36:39
  To change this template use File | Settings | File Templates.
--%>
<jsec:isNotLoggedIn>
  <g:form action="login" controller="user">
   <g:if test="${flash.message}">
        <span style="color:red">${flash.message}</span>
    </g:if>
    <label for="email">Email:</label>
    <input  id="email" name="email" type="text"/>
    <label for="password">Password:</label>
    <input  id="password" name="password" type="password"/>
    <input type="submit" value="login"/>
  </g:form>
</jsec:isNotLoggedIn>
<jsec:isLoggedIn>
     Hello, <jsec:principal/>
</jsec:isLoggedIn>